package com.ticket.mapper;

import com.ticket.pojo.Plane;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlaneMapper {
    List<Plane> selectByPage(@Param("begin") int begin, @Param("size") int size);

    int selectTotalCount();

    //分页条件查询
    List<Plane> selectByPageAndCondition(@Param("begin") int begin, @Param("size") int size, @Param("plane") Plane plane);

    //条件查询总记录数
    int selectTotalCountByCondition(@Param("plane") Plane plane);

    void add(Plane plane);

    void update(Plane plane);

    void deleteById(int id);

    void deleteByIds(@Param("ids") int[] ids);
}
